<template>
  <view class="enterpriseCert">
    <block v-if="list.length > 0">
      <block v-for="item in list" :key="item">
        <view 
          class="item common-bg-white" 
          @tap="handleItem" 
          :data-item="item"
        >
          <view class="flex single-line">{{ item.title || '--' }}</view>
          <view :class="['item-status',item.auditStats && 'inreview']">{{item.auditStats_dictText}}</view>
          <image
            src="https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/arrowRight.png"
          />
        </view>
      </block>
    </block>

    <custom-emptyMsg 
      v-else 
      content="--暂无企业数据--"
    />

    <view class="footer">
      <custom-ButtonGroup
        submitText="添加认证"
        height="96rpx"
        @handleTap="navigateToEditEnterprise"
      />
    </view>
  </view>
</template>
<script src="./indexMod.js" />
<style src="./indexStyle.scss" lang="scss" scoped>
</style>